<extend name='./Public/Base/base.html' />
<block name='script'>
	<link rel="stylesheet" href="__PUBLIC__/Admin/service_list.css"> 
</block>
<block name='content'>

<div class='container-layout'>
	<div class='line margin'>
		<div class='x9'>首页 / 模块管理 /服务管理</div>
		<div class='x3'>
			<span class='border button button-little bg-blue ServiceaddBut'>
				<span class='icon-plus-square-o'></span>
				添加新服务
			</span>
		</div>
	</div>

	<!--添加服务-->
	<div class='line hidden ServiceCon'>
		<div class='x2 '>
			<lable class='label'>服务名：
				<input type='text' class='input' name='name' />
			</lable>
		</div>
		<div class='x2 '>
			<lable class='label'>表名：
				<input type='text' class='input' name='tablename' />
			</lable>
		</div>
		<div class='x2 Padding-top20'>
			<button type='button' class='button bg-sub Serviceadd' >添加</button>
		</div>
	</div>




	

	<!--显示数据-->
	<div class='line'>
		<div class='x12'>
			<table class='table Service_list'>
				<tr>
					<th><input type='checkbox' name='Checkall' /> 全选/取消</th>
					<th>服务名</th>
					<th>数据表名</th>
					<th>操作</th>
				</tr>
				<volist name='ServiceList.list' id='vo' >
					<tr>
						<td><input type='checkbox' name='sids' value='{$vo.service_id}' /></td>
						<td>{$vo.service_name}</td>
						<td>{$vo.service_table_name}</td>
						<td>
							<a class='button button-little bg-sub ServiceDel' data='{$vo.service_id}'>删除</a>
						</td>
					</tr>
				</volist>
			</table>			
		</div>
		<if condition="$ServiceListCount gt 0">
			<div class='x2'><a class='button button-little bg-red ServiceDels'><span class='icon-trash-o'></span> 删除选中</a></div>
		</if>
	</div>

	<!--显示分页-->
	<div class='line margin-large'>
		<if condition="$ServiceListCount gt 0">
			<div class='x12  text-center'>
				{$ServiceList['fpage']}
			</div>
		</if>
	</div>

</div>





</block>
<block name='bottom'>
	<script src="__PUBLIC__/Admin/service_list.js"></script> 
</block>